//
//  InterestedTableViewCell.m
//  TodatPlay
//
//  Created by dllo on 16/9/5.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "InterestedTableViewCell.h"
#import "SDAutoLayout.h"
@interface InterestedTableViewCell ()
@property (nonatomic, strong) UILabel *label;
@end

@implementation InterestedTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createContents];
    }
    return self;
}
- (void)setNumberOfInteresting:(NSString *)numberOfInteresting{
    _numberOfInteresting = numberOfInteresting;
    self.label.text = [NSString stringWithFormat:@"%@感兴趣", numberOfInteresting];
}
- (void)createContents {
    self.label = [UILabel new];
    [self.contentView addSubview:_label];
    self.label.font = [UIFont systemFontOfSize:13];
    self.label.textColor = [UIColor colorWithWhite:0.800 alpha:1.000];
    
    UIImageView *imageView = [UIImageView new];
//    [self.contentView addSubview:imageView];
    self.label.sd_layout
    .leftSpaceToView(self.contentView, 10)
    .centerYEqualToView(self.contentView)
    .heightIs(30)
    .widthIs(150);
//    [self.label setupAutoWidthWithRightView:imageView rightMargin:10];
    // 遍历的方法创建imageView
    for (int i = 0; i < _imageNameArr.count; i++) {
        
    }
    imageView.sd_layout
    .leftSpaceToView(self.label, 10)
    .centerYEqualToView(self.contentView)
    .widthIs(15)
    .heightIs(15);
    [self setupAutoHeightWithBottomView:self.label bottomMargin:10];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



@end










